<?php
/**
 * Created by PhpStorm.
 * User: dell
 * Date: 2017/5/24
 * Time: 16:36
 */

namespace Home\Model\Wechat;


use Think\Model;

class WechatModel extends Model
{
    public function addWechat($param)
    {
        return $this->add($param);
    }

    public function findWechat($openid)
    {
        return $this->field('nickname')->find(array('openid' => $openid));
    }
}